package com.jiazhong.cloud.gateway.example.second.controller;

import com.jiazhong.cloud.commons.util.JsonResult;
import com.jiazhong.cloud.commons.util.ResultTool;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/second")
public class SecondController {

    @GetMapping("/find")
    public JsonResult find() {
        return ResultTool.success("This is SecondController`find method!");
    }

    @PostMapping("/save")
    public JsonResult save() {
        return ResultTool.success("This is SecondController`save method!");
    }

    @DeleteMapping("/delete")
    public JsonResult delete() {
        return ResultTool.success("This is SecondController`delete method!");
    }

    @PutMapping("/update")
    public JsonResult update() {
        return ResultTool.success("This is SecondController`update method!");
    }
}
